//
//  AddCustomerViewController.h
//  Spa
//
//  Created by PangPond on 12/1/2556.
//  Copyright (c) พ.ศ. 2556 innova. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DatabaseUtility.h"
#import "AddCustomerFirstnameCell.h"
#import "AddCustomerLastname.h"
#import "AddCustomerNickNameCell.h"
#import "AddCustomerGenderCell.h"
#import "AddCustomerBirtdayCell.h"
#import "AddCustomerTelCell.h"
#import "AddCustomerEmailCell.h"
#import "AddCustomerNoteCell.h"
@interface AddCustomerViewController : UIViewController<UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate>{
    
}
@property(nonatomic,strong)DatabaseUtility *databaseUtility;
@property(nonatomic,strong)NSString * keyIf;
@property(nonatomic,strong)NSString * keyCustomerFirstname;
@property(nonatomic,strong)NSString * keyCustomertLastname;
@property(nonatomic,strong) IBOutlet UITableView *tableView;
-(IBAction)BackButton:(id)sender;
-(IBAction)SaveButton:(id)sender;
-(IBAction)btnb:(id)sender;
- (IBAction)dismissKeyboard:(id)sender;

//CellFirstname
@property(nonatomic,strong)IBOutlet AddCustomerFirstnameCell *addCustomerFirstnameCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldFirstnameCell;

//Cell Lastname
@property(nonatomic,strong)IBOutlet AddCustomerLastname *addCustomerLastname;
@property(nonatomic,strong)IBOutlet UITextField *fieldLastnameCell;

//Cell NickName
@property(nonatomic,strong)IBOutlet AddCustomerNickNameCell *addCustomerNickNameCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldNickNameCell;

//Cell Gender
@property(nonatomic,strong)IBOutlet AddCustomerGenderCell *addCustomerGenderCell;

//Cell Birtday
@property(nonatomic,strong)IBOutlet AddCustomerBirtdayCell *addCustomerBirtdayCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldBirtdayCell;
@property(nonatomic,strong)IBOutlet UIButton *btnBirtday;

//Cell Tel
@property(nonatomic,strong)IBOutlet AddCustomerTelCell *addCustomerTelCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldTelCell;

//Cell Email
@property(nonatomic,strong)IBOutlet AddCustomerEmailCell *addCustomerEmailCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldEmailCell;

//Cell Note
@property(nonatomic,strong)IBOutlet AddCustomerNoteCell *addCustomerNoteCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldNoteCell;

//validate
-(BOOL)validate: (NSString *) candidate;

@end
